<?php
namespace app\common\model;

class ShopExpressModel extends BaseModel
{
    protected $name = 'shop_express';
    protected $autoWriteTimestamp = false;
    // 定义自动完成的属性
    protected $auto = []; //新增修改
    protected $insert = []; //插入
    protected $update = []; //修改


    /*修改器*/
    /**
     * 更新快递缓存
     * @return mixed
     */
    public function updateCache(){
        $express = $this->column('express_code,express_name,express_url','express_code');
        return cache('express',$express);
    }
}
